import request from '@/utils/request'
// 表单添加
export function addForm(data) {
  return request({
    url: '/dynamic/table/save',
    method: 'post',
    data: data
  })
}
//表单列表查看
export function formList(query) {
  return request({
    url: '/dynamic/table/list',
    method: 'get',
    params: query
  })
}
// 查询表单详细
export function formDetail(id) {
  return request({
    url: '/dynamic/table/' + id,
    method: 'get'
  })
}
//表单数据列表
export function formDataList(query) {
  return request({
    url: '/dynamic/table/tabledata/list',
    method: 'get',
    params: query
  })
}
//添加数据
export function addData(data) {
  return request({
    url: '/dynamic/table/tabledata/save',
    method: 'post',
    data: data
  })
}
//导出数据
export function downLoadList(id) {
  return request({
    url: '/dynamic/table/tabledata/importlist',
    method: 'get',
    params: id
  })
}
export function formPublic(data) {
  return request({
    url: '/dynamic/table/updateStatus',
    method: 'post',
    params: data
  })
}
export function updateisDelete(data){
  return request({
    url:`/dynamic/table/updateIsDelete`,
    method:'post',
    params: data
  })
}

export function formCopy(data){
  return request({
    url:`/dynamic/table/copy`,
    method:'post',
    params: data
  })
}
